package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作业围栏报警对象 job_plan_enclosure_warn
 * 
 * @author ruoyi
 * @date 2025-03-20
 */
public class JobPlanEnclosureWarn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 标签编号 */
    @Excel(name = "标签编号")
    private String tagId;

    /** 报警规则id */
    @Excel(name = "报警规则id")
    private Integer triggerId;

    /** 报警名称 */
    @Excel(name = "报警名称")
    private String triggerName;

    /** 实体id(员工id，车辆id) */
    @Excel(name = "实体id(员工id，车辆id)")
    private Long entityId;

    /** 实体名称 */
    @Excel(name = "实体名称")
    private String entityName;

    /** 厂区id */
    @Excel(name = "厂区id")
    private Long orgId;

    /** 地图编号 */
    @Excel(name = "地图编号")
    private Long areaId;

    /** 围栏id */
    @Excel(name = "围栏id")
    private Long enclosureId;

    /** 围栏名称 */
    @Excel(name = "围栏名称")
    private String enclosureName;

    /** 触发时间 */
    @Excel(name = "触发时间")
    private Long raiseTime;

    /** 扩展属性 */
    @Excel(name = "扩展属性")
    private String options;

    /** 报警类型(参考报警规则) */
    @Excel(name = "报警类型(参考报警规则)")
    private Integer type;

    /** 处理说明 */
    @Excel(name = "处理说明")
    private String solveNote;

    /** 处理时间 */
    @Excel(name = "处理时间")
    private Long solveTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private Long stopTime;

    /** 报警状态(0-报警中 1-报警结束 2-已处理) */
    @Excel(name = "报警状态(0-报警中 1-报警结束 2-已处理)")
    private Integer state;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 删除标志（0未删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTagId(String tagId) 
    {
        this.tagId = tagId;
    }

    public String getTagId() 
    {
        return tagId;
    }
    public void setTriggerId(Integer triggerId) 
    {
        this.triggerId = triggerId;
    }

    public Integer getTriggerId() 
    {
        return triggerId;
    }
    public void setTriggerName(String triggerName) 
    {
        this.triggerName = triggerName;
    }

    public String getTriggerName() 
    {
        return triggerName;
    }
    public void setEntityId(Long entityId) 
    {
        this.entityId = entityId;
    }

    public Long getEntityId() 
    {
        return entityId;
    }
    public void setEntityName(String entityName) 
    {
        this.entityName = entityName;
    }

    public String getEntityName() 
    {
        return entityName;
    }
    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setEnclosureId(Long enclosureId) 
    {
        this.enclosureId = enclosureId;
    }

    public Long getEnclosureId() 
    {
        return enclosureId;
    }
    public void setEnclosureName(String enclosureName) 
    {
        this.enclosureName = enclosureName;
    }

    public String getEnclosureName() 
    {
        return enclosureName;
    }
    public void setRaiseTime(Long raiseTime) 
    {
        this.raiseTime = raiseTime;
    }

    public Long getRaiseTime() 
    {
        return raiseTime;
    }
    public void setOptions(String options) 
    {
        this.options = options;
    }

    public String getOptions() 
    {
        return options;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setSolveNote(String solveNote) 
    {
        this.solveNote = solveNote;
    }

    public String getSolveNote() 
    {
        return solveNote;
    }
    public void setSolveTime(Long solveTime) 
    {
        this.solveTime = solveTime;
    }

    public Long getSolveTime() 
    {
        return solveTime;
    }
    public void setStopTime(Long stopTime) 
    {
        this.stopTime = stopTime;
    }

    public Long getStopTime() 
    {
        return stopTime;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tagId", getTagId())
            .append("triggerId", getTriggerId())
            .append("triggerName", getTriggerName())
            .append("entityId", getEntityId())
            .append("entityName", getEntityName())
            .append("orgId", getOrgId())
            .append("areaId", getAreaId())
            .append("enclosureId", getEnclosureId())
            .append("enclosureName", getEnclosureName())
            .append("raiseTime", getRaiseTime())
            .append("options", getOptions())
            .append("type", getType())
            .append("solveNote", getSolveNote())
            .append("solveTime", getSolveTime())
            .append("stopTime", getStopTime())
            .append("state", getState())
            .append("createdBy", getCreatedBy())
            .append("createdDate", getCreatedDate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
